package zero.tech.games.dn.event;

import zero.tech.core.event.EventListener;
import zero.tech.core.event.EventType;
import zero.tech.core.work.WorkManager;
import zero.tech.games.dn.work.sync.PlayerTaotaiLeaveCalculateSyncWork;
import zero.tech.games.logic.common.Room;
import zero.tech.games.logic.data.LogicEventType;
import zero.tech.wsnet.controller.LogicController;

public class PlayerTaotaiLeave implements EventListener{

	@Override
	public EventType netEventType() {
		return LogicEventType.PLAYER_TAOTAI_LEAVE;
	}

	@Override
	public void notifyEvent(Object... objs) {
		Room room=(Room) objs[0];
		LogicController logicController = (LogicController) objs[1];
		WorkManager.getManager().submit(PlayerTaotaiLeaveCalculateSyncWork.class,room,logicController);
	}

	@Override
	public boolean asynchronous() {
		return false;
	}

}
